<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            border: 0;
        }

        div {
            border: 2px solid red;
        }

        img {
            /* vertical-align: bottom; */
            /* vertical-align: top; */
            vertical-align: middle;
            /* vertical-align: baseline; */

        }

        textarea {
            vertical-align: middle;
        }
    </style>
</head>

<body>
    <div>
        <img src="./black.png" alt="">pink老师是刘德华
    </div>
    <textarea name="" id="" cols="30" rows="10"></textarea>pink老师是刘德华
</body>

</html>